// 引入axios
import axios from "axios"
const instance = axios.create({
    baseURL:"http://s.linweiqin.com/"
});
instance.interceptors.request.use(function(config){
    // let wdata = JSON.parse(localStorage.getItem("wdata") || "{}")
    // let oauth_token = wdata.oauth_token;
    // console.log(config)
    return config;
}, function(error){
    return Promise.reject(error);
});
instance.interceptors.response.use(function(response){
    return response.data
},function(error){
    return Promise.reject(error);
})
export default instance;